{extend name="public/base" /}
{block name='content'}
{include file='public/content_header' /}
<!--数据列表页面-->
<section class="content">

    <!--顶部搜索筛选-->
    <div class="row">
        <div class="col-md-12">
            <div class="box">
                <div class="box-body">
                    <form class="form-inline searchForm" id="searchForm" action="{:url('getmsgnums')}" method="GET">

                        <div class="form-group" style="padding-top: 3px;">
                            <input value="{$member_id ? $member_id : '' ;}"
                                   name="member_id" id="member_id" class="form-control input-sm"
                                   placeholder="用户融云ID搜索">
                        </div>
                        <div class="form-group" style="padding-top: 3px;">
                            <input value="{$day_time|default=$day}" readonly name="day_time" id="day_time"
                                   class="form-control input-sm indexSearchDateRange" placeholder="日期查询">
                        </div>
                        <script>
                            laydate.render({
                                elem: '#day_time',
                            });
                        </script>

                        <div class="form-group" style="padding-top: 3px;">
                            <button class="btn btn-sm btn-primary" type="submit"><i class="fa fa-search"></i> 查询
                            </button>
                        </div>

                        <div class="form-group" style="padding-top: 3px;">
                            <button onclick="clearSearchForm()" class="btn btn-sm btn-default" type="button"><i
                                    class="fa  fa-eraser"></i> 清空查询
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="box">

                <!--数据列表顶部-->
                <div class="box-header">
                    <div>
                        <a class="btn btn-success btn-sm ReloadButton" data-toggle="tooltip" title="刷新">
                            <i class="fa fa-refresh"></i> 刷新
                        </a>
                    </div>
                </div>

                <div class="box-body table-responsive">
                    <table class="table table-hover table-bordered datatable" width="100%" style="white-space: nowrap">
                        <thead>
                        <tr >
                            <th style="text-align: center;vertical-align: middle;">查询日期</th>
                            <th style="text-align: center;vertical-align: middle;">女生融云ID</th>
                            <th style="text-align: center;vertical-align: middle;">用户UID</th>
                            <th style="text-align: center;vertical-align: middle;">用户昵称</th>
                            <th style="text-align: center;vertical-align: middle;">手机号</th>
                            <th style="text-align: center;vertical-align: middle;">聊天人数</th>
                            <th style="text-align: center;vertical-align: middle;">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {foreach name='data' id='item' key='data_key'}
                        <tr >
                            <td style="text-align: center;vertical-align: middle;">{$day}</td>
                            <td style="text-align: center;vertical-align: middle;">{$item.fromUserId}</td>
                            <td style="text-align: center;vertical-align: middle;">{$item.me_uid}</td>
                            <td style="text-align: center;vertical-align: middle;">{$item.me_nick_name}</td>
                            <td style="text-align: center;vertical-align: middle;">{$item.me_phone}</td>
                            <td style="text-align: center;vertical-align: middle;">{$item.data_count} 人</td>
                            <td style="text-align: center;vertical-align: middle;">
                                <a data-width="95%" data-height="95%" data-id="{$item.fromUserId}#{$day}" data-url="getboylist" data-title='<span style="color: red">【</span>融云ID：{$item.fromUserId}<span style="color: red">】</span><span style="color: red">【</span>昵称：{$item.me_nick_name}<span style="color: red">】</span>于 {$day} 与 每名男孩聊天次数详情列表' data-confirm="2" data-type="2" class="btn btn-default btn-xs AjaxButton"  title="查询此女孩于 {$day} 与 每名男孩聊天次数详情列表" data-toggle="tooltip">
                                    <span>查看详情</span>
                                </a>
                            </td>
                        </tr>
                        {/foreach}
                        </tbody>
                    </table>
                </div>

                <!-- 数据列表底部 -->
                <div class="box-footer">
                    {$page|raw}
                    <label class="control-label pull-right" style="margin-right: 10px; font-weight: 100;">
                        <small>共{$total}条记录</small>&nbsp;
                        <small>每页显示</small>
                        &nbsp;
                        <select class="input-sm" onchange="changePerPage(this)">
                            <option value="10" {if $admin.per_page==10}selected{/if}>10</option>
                            <option value="20" {if $admin.per_page==20}selected{/if}>20</option>
                            <option value="30" {if $admin.per_page==30}selected{/if}>30</option>
                            <option value="50" {if $admin.per_page==50}selected{/if}>50</option>
                            <option value="100" {if $admin.per_page==100}selected{/if}>100</option>
                        </select>
                        &nbsp;
                        <small>条记录</small>
                    </label>
                </div>

            </div>
        </div>
    </div>
</section>
<script>
    $(function () {
        $('.photo-list img').on('click', function () {
            layer.photos({
                photos: '.photo-list',
                shadeClose: false,
                closeBtn: 2,
                anim: 5
            });
        })
    });
</script>
{/block}

